package com.rw.test;


import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author rabit
 */
//@Component(value = "myAspectTest")
@Service(value = "myAspectTest")
public class RoundInterfaceImpl implements RoundInterface {


    @Pointcut(value = "execution(* com.rw.test.RoundInterfaceImpl.printInfo())")
    @Override
    public void printInfo() {
        System.out.println("切点的方法");
    }

    @Override
    public void testAllFunc(int age) {
        System.out.println("这个是RoundInterfaceImpl的方法2");
    }

    @Override
    public void testAllFunc(String name) {
        System.out.println("这个是RoundInterfaceImpl的方法2-1");
    }

    @Override
    public void testAllFunc2(String name,int age) {
        System.out.println("这个是RoundInterfaceImpl的方法2-2");
    }

    @Override
    public void testAllFunc3(String name, int age, double money) {
        System.out.println("这个是RoundInterfaceImpl的方法2-3");
    }

    @Override
    public void testAllFunc4(String name, double money, int age) {
        System.out.println("这个是RoundInterfaceImpl的方法3-2");
    }
}
